import axios from "./request";

export const get_List = () =>axios({
    url:'/api/list',
    method:'get'
})

export const list_Del = (params:any) =>axios({
    url:'/api/del',
    method:'get',
    params:params
})

export const list_Add = (data:any) =>axios({
    url:'/api/add',
    method:'post',
    data:data
})

export const Switch = (data:any) =>axios({
    url:'/api/switch',
    method:'post',
    data:data
})

export const upload = (data:any) =>axios({
    url:'/api/upload',
    method:'post',
    data:data
})

export const Login = (data:any) =>axios({
    url:'/api/login',
    method:'post',
    data:data
})

export const Role = (data:any) =>axios({
    url:'/api/role',
    method:'post',
    data:data
})
